import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ViewUI from 'view-design'
import 'view-design/dist/styles/iview.css'
import './network'


Vue.use(ViewUI, {
  transfer: true,
  size: 'large',
  capture: false,
  select: {
    arrow: 'md-arrow-dropdown',
    arrowSize: 30
  }
})

Vue.config.productionTip = false

const vue = new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

// 在导出vue全局实例前对一些插件参数进行全局配置
vue.$Message.config({
  top: 450,
  duration: 2
})

console.log = (function (log) {
  return process.env.NODE_ENV === 'development' ? log : function () {
  }
}(console.log))

export default vue
